<!doctype html>
<html lang="en">
<head>
	<meta charset="UTF-8">
	<title>个人资料</title>
	<link rel="stylesheet" type="text/css" href="<?=base_url()?>public/css/style.css">
	<script type="text/javascript" src="<?=base_url()?>public/js/jq.1.12.4.js"></script>
	<script type="text/javascript" src="<?=base_url()?>public/js/js.js"></script>
<style>
.cont{
	width:100%;
	height:800px;
	overflow:hidden;
}
.con{
	min-height: 100%;
	margin-left:  170px;
	background-image:url(<?=base_url()?>public/img/back.jpg);
	background-size:100% 100%;
	padding:0;
	box-sizing: border-box;
	background-repeat:no-repeat;
}
</style>
</head>
<body>
	<!-- 头部 -->
	<?php echo $menu ?>
	<!-- 主体 -->
	<div class="main clearfix" style='min-width:1300px;'>
		<?php echo $left ?>
		<div class="content" style='width:97%;'>
			<div class="con">
				<div class="cont" style='padding-bottom:3%;height:826px;'>
					<div class="cont_left">
                    	<div class="pict">
                        	<ul>
                            	<a href="offer_help">
                                    <li class="left1" style='margin-left:18%;background:url(<?=base_url()?>public/img/she.png) no-repeat center center;width:26%;height:300px;position:relative;'>
								<span class='off_money' style='position:absolute;background:#00720f;top:76%;left:38%;width:23%;height:18px;color:white;font-size:16px;'><?php echo $user['jt_money'] ?></span></li></a>
                                <a href="accept_help"><li class="right1" style='margin-right:18%;background:url(<?=base_url()?>public/img/de.png) no-repeat center center;width:26%;height:300px;position:relative;'>
								<span class='acc_money' style='text-align:center;position:absolute;background:#ff9c00;top:75%;left:39%;width:23%;height:18px;color:white;font-size:16px;'><?php echo $user['tg_money'] ?></span></li></a>
								
                            </ul>
                        </div>
                    	<table cellpadding="0" cellspacing="0" class="table1">
                        	<tr class="title">
                            	<th colspan="5">平台公益公告</th>
                            </tr>
                        	<tr>
                            	<th></th>
                                <th>标题</th>
                                <th>摘要</th>
                                <th>时间</th>
                                <th>查看</th>
                            </tr>
                            <?php 
                            foreach ($result as $rs){
                            ?>
                            <tr>
                            	<td class="one"><span><img style="width: 100px;height: 100px;" src="<?=base_url()?>uploads/<?php echo $rs['picture']; ?>"></span></td>
                            	<td><a href="articles/index?id=<?php echo $rs['id'];?>"><?php echo $rs['title'];?></a></td>
                                <td><?php echo $rs['content'];?></td>
                                <td class="number"><?php echo date("Y-m-d H:i:s",$rs['create_time']);?></td>
                                <td class="eye"><a href="articles/index?id=<?php echo $rs['id'];?>">查看</a></td>
                            </tr>
                            <?php }?>
                        </table>
                    </div>
                    <div class="cont_right" style='width:20%;'> 
                    	<div class="title"><h1>爱&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;基金池：200</h1></div>
                        <div class="right_two">
                        	<p><span>公益账号:</span><?php echo $user['user_account'] ?></p>
                            <p><span>会员等级:</span><?php echo $team_lv['title'] ?>；<?php echo $lv['title'] ?></p>
								
                        </div>
;						<div style='width:25%;height:14px;float:left;margin-left:10px;border:1px solid black;border-ra'>
							<div style='width:80%;height:14px;background:rgba(14,170,24,0.6);border-box;border-right:1px solid #ccc;float:left;'></div>
						</div><span style='height:14px;color:black;'>89/99</span>
                        <div  class="right_two">
                        	<h1>公益排单信息</h1>
                            <p><span>公益币余额：</span><?php echo $user['public_money'] ?></p>
                        </div>
                        <div  class="right_two">
                        	<h1>提供公益帮助信息</h1>
                            <div class="green">
                                <?php if(!empty($offer)): ?>
                            	<p><span>公益编号：</span><b><?php echo $offer['id'] ?></b></p>
                                <p><span>参与者：</span><b><?php echo $user['user_name'] ?></b></p>
                                <p><span>数额：</span><b><?php echo $offer['money'] ?></b></p>
                                <p><span>日期：</span><b><?php echo date('Y-m-d H:i:s',$offer['create_time']) ?></b></p>
                                <p><span>状况：</span><b>等待中</b></p>
                                <p class="yew">当前排队日回报1%，已经排单0天获得0回报</p>
                                <?php endif; ?>
                            </div>
                        </div>
                        <div  class="right_two">
                        	<h1>接受公益帮助信息</h1>
                            <div class="green" style="background-color:#f0ff8e;">
                                <?php if(!empty($accept)): ?>
                            	<p><span>公益编号：</span><b><?php echo $accept['id'] ?></b></p>
                                <p><span>参与者：</span><b><?php echo $user['user_name'] ?></b></p>
                                <p><span>数额：</span><b><?php echo $accept['money'] ?></b></p>
                                <p><span>日期：</span><b><?php echo date('Y-m-d H:i:s',$accept['create_time']) ?></b></p>
                                <p><span>状况：</span><b>等待中</b></p>
                                <?php endif; ?>
                                <!-- <p class="yew">我愿意0天后接受匹配</p> -->
                            </div>
                        </div>		
                    </div>
				</div>
			</div>
		</div>
	</div>
<script type="text/javascript">
    $(function(){
        var arr=$(".clearfix .content .cont_right>span").html().split("/");
        var count=arr[0];
        var total=arr[1];
        console.log(arr+"-----"+count+"---"+total);
        $(".clearfix .content .cont_right .progress>div").css("width",count/total*total+"%");
    })
</script>

</body>
</html>